<template>
  <div>
    <el-container>
      <!-- 头部 -->
      <el-header>
        <Header></Header>
      </el-header>
      <el-container>

        <el-aside width="200px">

   
          <el-menu
            default-active="1"
            class="el-menu-vertical-demo"
            @open="handleOpen"
            @close="handleClose"
          >
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-menu"></i>
                <span>首页</span>
              </template>

               <router-link to="/home/home1">
              <el-menu-item-group>
            
              <template slot="title">首页动态</template>
               </el-menu-item-group>
              </router-link>
               
              <router-link to="/home/rules">
              <el-menu-item-group>
                <template slot="title">公司制度</template>
              </el-menu-item-group>
              </router-link>
            </el-submenu>
          </el-menu>
        </el-aside>  
        <!-- 主体 -->
        <el-main>
    
            <router-view />

          
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script>
import Header from "../components/Header";
export default {
  components: { Header },
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(done) {
      done();
    },
  },
};
</script>
<style>


#a {
  float: left;
  margin-left: 10px;
  font-size: 5px;
}

.el-dropdown-link {
  cursor: pointer;
  color: #409eff;
}
.el-icon-arrow-down {
  font-size: 12px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;

  text-align: left;
  line-height: 25px;
}
.el-carousel {
  height: 400px;
  width: 500px;

  text-align: center;
  line-height: 160px;
}
</style>
